#ifndef CHATBROADCAST_HH_
# define CHATBROADCAST_HH_
# include "Network.hh"
# include "XmlMessage.hh"

/**
 * \brief Chat üzenet küldése a klienseknek
 *
 * A szerver küldi a klienseknek az üzenetet.
 * Az üzenet szerkezete:
 * <chat_broadcast>
 *  <sender>feladó</sender>
 *  <message>üzenet</message>
 * </chat_broadcast>>
 */
class Network::ChatBroadcast : public Network::XmlMessage {
public: static spChatBroadcast construct(QDomElement const& message);

protected: QString const sender;
protected: QString const msg;

public: ChatBroadcast(QString const& sender, QString const& msg);

public: virtual void process_on_client(Network::XmlClient& client);

public: virtual QDomDocument to_xml() const;
};

#endif /* CHATFROMCLIENT_HH_ */
